# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=neatvi
pkgver=16
pkgrel=0
pkgdesc="vi/ex editor with support for bidirectional UTF-8 text, syntax highlight and infinite undo/redo"
url="https://github.com/aligrudi/neatvi"
arch="all"
license="ISC" # vi.c
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/aligrudi/neatvi/archive/$pkgver.tar.gz
	conf.patch
	"

build() {
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

check() {
	./test.sh
}

package() {
	install -Dvm755 vi "$pkgdir"/usr/bin/neatvi
	install -Dvm755 ecmd.sh -t "$pkgdir"/usr/share/neatvi/
	install -Dvm644 README -t "$pkgdir"/usr/share/doc/neatvi/
}

sha512sums="
aa505500846de5a82418094d59763ae93639415c81cc680509ab335a04abccbefcccc4bcbb38bf741a17527326f86f3e20881e73d96ea490e8f1c59fd5b2cebc  neatvi-16.tar.gz
ea0ccc8360fb6c7a57818cc7f39306584bdc4b6599d6474a28eb1e0ca4c57255e297c12ab5c27413ada6100788905b654013969cdff384320b3e4fdf9803be17  conf.patch
"
